Option Strict On
Option Explicit On 

Public Class About
    Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "

    Public Sub New()
        MyBase.New()

        'This call is required by the Windows Form Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    Friend WithEvents btnOk As System.Windows.Forms.Button
    Friend WithEvents lnkWebSite As System.Windows.Forms.LinkLabel
    Friend WithEvents lblWebSite As System.Windows.Forms.Label
    Friend WithEvents PictureBox1 As System.Windows.Forms.PictureBox
    Friend WithEvents lblCustomer As System.Windows.Forms.Label
    Friend WithEvents lblWarning As System.Windows.Forms.Label
    Friend WithEvents lblAvand As System.Windows.Forms.Label
    Friend WithEvents lblLicensedTo As System.Windows.Forms.Label
    Friend WithEvents lblBehrayan As System.Windows.Forms.Label
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(About))
        Me.PictureBox1 = New System.Windows.Forms.PictureBox()
        Me.lblCustomer = New System.Windows.Forms.Label()
        Me.lblWarning = New System.Windows.Forms.Label()
        Me.lblAvand = New System.Windows.Forms.Label()
        Me.lblLicensedTo = New System.Windows.Forms.Label()
        Me.lblBehrayan = New System.Windows.Forms.Label()
        Me.btnOk = New System.Windows.Forms.Button()
        Me.lnkWebSite = New System.Windows.Forms.LinkLabel()
        Me.lblWebSite = New System.Windows.Forms.Label()
        CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'PictureBox1
        '
        Me.PictureBox1.Cursor = System.Windows.Forms.Cursors.Default
        resources.ApplyResources(Me.PictureBox1, "PictureBox1")
        Me.PictureBox1.Name = "PictureBox1"
        Me.PictureBox1.TabStop = False
        '
        'lblCustomer
        '
        Me.lblCustomer.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
        resources.ApplyResources(Me.lblCustomer, "lblCustomer")
        Me.lblCustomer.Name = "lblCustomer"
        '
        'lblWarning
        '
        resources.ApplyResources(Me.lblWarning, "lblWarning")
        Me.lblWarning.Name = "lblWarning"
        Me.lblWarning.Tag = "Copyright"
        '
        'lblAvand
        '
        resources.ApplyResources(Me.lblAvand, "lblAvand")
        Me.lblAvand.Name = "lblAvand"
        Me.lblAvand.Tag = ""
        '
        'lblLicensedTo
        '
        resources.ApplyResources(Me.lblLicensedTo, "lblLicensedTo")
        Me.lblLicensedTo.Name = "lblLicensedTo"
        Me.lblLicensedTo.Tag = "LicenseTo"
        '
        'lblBehrayan
        '
        resources.ApplyResources(Me.lblBehrayan, "lblBehrayan")
        Me.lblBehrayan.Name = "lblBehrayan"
        Me.lblBehrayan.Tag = "CompanyProduct"
        '
        'btnOk
        '
        Me.btnOk.DialogResult = System.Windows.Forms.DialogResult.Cancel
        resources.ApplyResources(Me.btnOk, "btnOk")
        Me.btnOk.Name = "btnOk"
        '
        'lnkWebSite
        '
        resources.ApplyResources(Me.lnkWebSite, "lnkWebSite")
        Me.lnkWebSite.Name = "lnkWebSite"
        Me.lnkWebSite.TabStop = True
        '
        'lblWebSite
        '
        resources.ApplyResources(Me.lblWebSite, "lblWebSite")
        Me.lblWebSite.Name = "lblWebSite"
        '
        'About
        '
        Me.AcceptButton = Me.btnOk
        resources.ApplyResources(Me, "$this")
        Me.CancelButton = Me.btnOk
        Me.Controls.Add(Me.PictureBox1)
        Me.Controls.Add(Me.lblBehrayan)
        Me.Controls.Add(Me.lnkWebSite)
        Me.Controls.Add(Me.lblWebSite)
        Me.Controls.Add(Me.btnOk)
        Me.Controls.Add(Me.lblCustomer)
        Me.Controls.Add(Me.lblWarning)
        Me.Controls.Add(Me.lblAvand)
        Me.Controls.Add(Me.lblLicensedTo)
        Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
        Me.MaximizeBox = False
        Me.MinimizeBox = False
        Me.Name = "About"
        Me.ShowInTaskbar = False
        Me.TopMost = True
        CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).EndInit()
        Me.ResumeLayout(False)
        Me.PerformLayout()

    End Sub

#End Region

    Private Sub About_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
        Dim s As String = System.Reflection.Assembly.GetExecutingAssembly.Location
        Dim fvi As FileVersionInfo = System.Diagnostics.FileVersionInfo.GetVersionInfo(s)
        lblAvand.Text &= fvi.FileVersion
        fvi = Nothing

        lnkWebSite.Links(0).LinkData = "http://www.radplatform.com"

        Dim t As String
        t &= [Global].GetSystemResource("CustomerName") & ": " & CUSTOMER_NAME & vbCrLf
        t &= [Global].GetSystemResource("CompanyName") & ": " & COMPANY_NAME & vbCrLf
        t &= [Global].GetSystemResource("SerialNumber") & ": " & SERIAL_NUMBER & vbCrLf
        lblCustomer.Text = t
    End Sub
    Private Sub btnOk_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOk.Click
        Me.Close()
    End Sub
    Private Sub lnkWebSite_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles lnkWebSite.LinkClicked
        lnkWebSite.Links(lnkWebSite.Links.IndexOf(e.Link)).Visited = True
        Process.Start(CType(e.Link.LinkData, String))
    End Sub
End Class
